Without auto_ptr<>

class OurClass
{
        OtherObject *a;
        OtherObject *b;
    public:
    	OurClass(const OtherObject &aRef, const OtherObject &bRef):
  	    	a(new OtherObject(aRef))
  	    	b(new OtherObject(bRef)) {};
      	~OurClass()
	   	{
       		delete a;
       		delete b;
    	};
	  	....
};